# createset.py
# 集合的创建用{}和函数set（）来实现
countries = {"China","USA","Japan","France"}
print("countries:",type(countries),countries) # 查看countries的类型及值
# 创建空集合必须使用set（）函数实现，因为{}是用来创建一个空字典的
d1 = {}
print("d1:",type(d1))  # 查看d1的类型
s1 = set("Hello")
print("s1:",s1)
s2 = set([1,3,1,2,7,6])
print("s2:",s2)
values = list(s2)
print("values:",values)
